Skip to content

Fix GTK modal screenshots and update Linux GTK packages to 0.5.0#18

Merged
Redth merged 1 commit into
mainfrom
element-screenshots
Mar 1, 2026
Merged

Fix GTK modal screenshots and update Linux GTK packages to 0.5.0#18
Redth merged 1 commit into
mainfrom
element-screenshots

Conversation

@Redth
Copy link
Copy Markdown
Owner

@Redth Redth commented Mar 1, 2026

  • Update Platform.Maui.Linux.Gtk4 packages from 0.2.3 to 0.5.0 (fixes modal native handlers)
  • Default screenshot now detects modal pages via Navigation.ModalStack with fallback to scanning Window visual children (GTK modals appear as direct Window children)
  • GtkAgentService.CaptureScreenshotAsync captures rootElement's native widget before falling back to main GTK window

- Update Platform.Maui.Linux.Gtk4 packages from 0.2.3 to 0.5.0 (fixes modal native handlers)
- Default screenshot now detects modal pages via Navigation.ModalStack
  with fallback to scanning Window visual children (GTK modals appear
  as direct Window children)
- GtkAgentService.CaptureScreenshotAsync captures rootElement's native
  widget before falling back to main GTK window

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Redth Redth merged commit 32ace99 into main Mar 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant